package org.ala.distributed_transaction_commons.communication;

import org.ala.distributed_transaction_commons.communication.coordinator.CoordinatorPublisher;
import org.ala.distributed_transaction_commons.communication.participant.ParticipantPublisher;
import org.ala.distributed_transaction_commons.redis.DistributedTransactionRedisTools;

/**
 *
 * @author 骆毅(ala)
 * @date 2024年2月19日
 */
public abstract class AbstractAction implements IAction {


	/**
	 * redis工具
	 */
	protected DistributedTransactionRedisTools distributedTransactionRedisTools;
	/**
	 * 向协调者publisher
	 */
	protected CoordinatorPublisher coordinatorPublisher;
	/**
	 * 向参与者publisher
	 */
	protected ParticipantPublisher participantPublisher;
	
	
	
	public DistributedTransactionRedisTools getDistributedTransactionRedisTools() {
		return distributedTransactionRedisTools;
	}
	public void setDistributedTransactionRedisTools(DistributedTransactionRedisTools distributedTransactionRedisTools) {
		this.distributedTransactionRedisTools = distributedTransactionRedisTools;
	}
	public CoordinatorPublisher getCoordinatorPublisher() {
		return coordinatorPublisher;
	}
	public void setCoordinatorPublisher(CoordinatorPublisher coordinatorPublisher) {
		this.coordinatorPublisher = coordinatorPublisher;
	}
	public ParticipantPublisher getParticipantPublisher() {
		return participantPublisher;
	}
	public void setParticipantPublisher(ParticipantPublisher participantPublisher) {
		this.participantPublisher = participantPublisher;
	}
}
